from flask import Flask,make_response,json,jsonify

app = Flask(__name__)
app.config['JSON_AS_ASCII '] = False  #取消转化为ASCII码显示

@app.route('/index')
def index():
    data = {
        'name':'张三'
    }
    #response = make_response(json.dumps(data,ensure_ascii = False))
    #response.mitetype = 'application/json'
    return jsonify(data,)

if __name__ == '__main__':
    app.run(debug=True, port=8002, host='0.0.0.0')